home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 63.zip
/
BS1 part 63
/
Tom Landry d1.adf
/
install-DTLSF
< prev
next >
Wrap
Text File
|
1993-10-09
|
5KB
|
179 lines
(onerror
(makeassign "DTLSF1_tmp" (safe))
(makeassign "DTLSF2_tmp" (safe))
(makeassign "DTLSF3_tmp" (safe))
)
; just in case it was restarted
(makeassign "DTLSF1_tmp" (safe)) ; starting fresh
(makeassign "DTLSF2_tmp" (safe))
(makeassign "DTLSF3_tmp" (safe))
; see if this is actually an update
(set is_update 0)
(set tlsf-dest (getassign "DTLSF1" "a"))
(message
"Welcome to the new DELUXE VERSION of\n"
"\"TOM LANDRY STRATEGY FOOTBALL\"\n"
"You need 2.2 MB for DTLSF\n\n"
"Choose a destination partition or directory to contain DTLSF. "
"The install program will create a directory called 'DTLSF' and copy "
"the program and files there for you.\n"
(help "Give the location where you want DTLSF installed; a directory will be created.");
)
(set intro-too 1)
(set space-needed "2.2")
(if tlsf-dest
(if (askbool
(prompt "You apparently already have DTLSF located in the drawer named \""
tlsf-dest "\". Do you want the update installed there?")
(help "The installer has determined that you may already have a "
"copy of DTLSF installed on your system. If this is incorrect, or "
"you want the update installed elsewhere, select NO. "
"Otherwise, select YES."
)
(default 1)
)
(set is_update 1) ; if user wants in same place
(set tlsf-dest ; if user wants in different place
(tackon
(askdir
(prompt ("Where do you wish to install DTLSF (You need %s MB)\n" space-needed))
(help "Choose a destination partition or directory to contain DTLSF. "
"The install program will create a directory called 'DTLSF' and copy "
"all icons and files for you\n")
(default @default-dest)
)
"DTLSF"
)
)
)
)
(if (not tlsf-dest)
(set tlsf-dest
(tackon
(askdir
(prompt ("Where do you wish to install DTLSF (You need %s MB)\n" space-needed))
(help "Choose a destination partition or directory to contain DTLSF. "
"The install program will create a directory called 'DTLSF' and copy "
"all icons and files for you\n")
(default @default-dest)
)
"DTLSF"
)
)
)
(set @default-dest tlsf-dest)
(makedir tlsf-dest (infos) (safe))
(set dspace (getdiskspace tlsf-dest))
(set space-needed 2200000)
(askdisk
(prompt "\nPlease insert \"DTLSF Disk 1\" in any drive\n")
(help "The football program and editor will be copied to your drawer.")
(dest "DTLSF1")
(newname "DTLSF1_tmp")
)
(copyfiles
(source "DTLSF1_tmp:")
(dest @default-dest)
(choices "Football" "editor" "convert_lg")
(infos)
)
(askdisk
(prompt "\nPlease insert \"DTLSF Disk 2\" in any drive\n")
(help "This disk contains support files and directories for the game and editor.")
(dest "DTLSF2")
(newname "DTLSF2_tmp")
)
(copyfiles
(source "DTLSF2_tmp:")
(dest @default-dest)
(all)
(infos)
)
(askdisk
(prompt "\nPlease insert \"DTLSF Disk 3\" in any drive\n")
(help "This disk contains support files and directories for the game and editor.")
(dest "DTLSF3")
(newname "DTLSF3_tmp")
)
(copyfiles
(source "DTLSF3_tmp:")
(dest @default-dest)
(all)
(infos)
)
(set string1 ("assign DTLSF1: %s" @default-dest))
(set string2 ("assign DTLSF2: %s" @default-dest))
(set string3 ("assign DTLSF3: %s" @default-dest))
(startup "DTLSFApp"
(prompt ("%s\n%s\n\n%s\n%s\n%s\n\n%s"
"The following assigns have been created."
"Do you want to add them to your startup?"
string1
string2
string3
"NOTE: The assigns will not be updated until you reboot."
)
)
(command ("assign DTLSF1: %s\n" @default-dest))
(command ("assign DTLSF2: %s\n" @default-dest))
(command ("assign DTLSF3: %s\n" @default-dest))
(help "DTLSF requires these logicals in order to locate its files, "
"leagues, sounds, etc. If you request, the installer will add the "
"necessary assigns to your user-startup script which is run when "
"your machine boots. If you don't allow the installer to do so now, "
"you will have to make the changes yourself.")
)
(makeassign "DTLSF1_tmp" (safe))
(makeassign "DTLSF2_tmp" (safe))
(makeassign "DTLSF3_tmp" (safe))
(message
"\nYour user-startup has now been modified for you. The necessary assigns will "
"be in force whenever you boot.\n\n"
"If you want the assigns active now, remove all disks and close the window for Disk 2 before proceeding.\n"
"(Otherwise, you'll need to reboot).\n\n"
"To play DTLSF, open the drawer where it was installed, and double-click on the "
"\"Football\" icon\n\n"
)
(if (not @pretend)
((makeassign "DTLSF1" @default-dest)
(makeassign "DTLSF2" @default-dest)
(makeassign "DTLSF3" @default-dest))
)
(exit)